package com.example.demo.request;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

public class CreateApplicationRequest {
    @NotBlank(message = "应用名称不能为空")
    private String appName;       // 应用中文名

    @NotBlank(message = "应用英文名不能为空")
    private String appEnName;     // 应用英文名

    private String appDesc;       // 应用说明

    @NotNull(message = "所属部门ID不能为空")
    private Integer deptId;       // 所属部门ID

    @NotBlank(message = "所属部门不能为空")
    private String deptName;      // 所属部门中文名

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getAppEnName() {
        return appEnName;
    }

    public void setAppEnName(String appEnName) {
        this.appEnName = appEnName;
    }

    public String getAppDesc() {
        return appDesc;
    }

    public void setAppDesc(String appDesc) {
        this.appDesc = appDesc;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }
}